package com.zfc.life.mapper;

import com.zfc.life.domain.Beautiful;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zfc
 * @Date 2024/8/15 11:08
 * @Description BeautifulMapper
 */
@Mapper
public interface BeautifulMapper {
    /**
     * 查询所有精选照片
     * @return
     */
    List<Beautiful> listBeautiful();

    /**
     * 添加精选照片
     * @param beautiful
     * @return
     */
    Integer addBeautiful(Beautiful beautiful);

    /**
     * 删除精选照片
     * @param id
     * @return
     */
    Integer deleteBeautiful(Long id);

    /**
     * 修改精选照片
     * @param beautiful
     * @return
     */
    Integer modifyBeautiful(Beautiful beautiful);

    /**
     * 根据id查询精选照片
     * @param id
     * @return
     */
    Beautiful queryBeautifulById(Long id);
}
